package com.jiuqi.ccp.generator.dao.pojo;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="CCP_IM_USERMSG"
 *     
*/
public class CcpImUsermsg implements Serializable {

    /** identifier field */
    private String ciuGuid;

    /** nullable persistent field */
    private String ciuUser;

    /** nullable persistent field */
    private String ciuTitle;

    /** nullable persistent field */
    private String ciuType;

    /** nullable persistent field */
    private String ciuSender;

    /** nullable persistent field */
    private String cimGuid;

    /** nullable persistent field */
    private String ciuBtime;

    /** nullable persistent field */
    private String ciuEtime;

    /** nullable persistent field */
    private String ciuResv1;

    /** nullable persistent field */
    private String ciuResv2;

    /** nullable persistent field */
    private String ciuResv3;

    /** full constructor */
    public CcpImUsermsg(String ciuGuid, String ciuUser, String ciuTitle, String ciuType, String ciuSender, String cimGuid, String ciuBtime, String ciuEtime, String ciuResv1, String ciuResv2, String ciuResv3) {
        this.ciuGuid = ciuGuid;
        this.ciuUser = ciuUser;
        this.ciuTitle = ciuTitle;
        this.ciuType = ciuType;
        this.ciuSender = ciuSender;
        this.cimGuid = cimGuid;
        this.ciuBtime = ciuBtime;
        this.ciuEtime = ciuEtime;
        this.ciuResv1 = ciuResv1;
        this.ciuResv2 = ciuResv2;
        this.ciuResv3 = ciuResv3;
    }

    /** default constructor */
    public CcpImUsermsg() {
    }

    /** minimal constructor */
    public CcpImUsermsg(String ciuGuid) {
        this.ciuGuid = ciuGuid;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="CIU_GUID"
     *         
     */
    public String getCiuGuid() {
        return this.ciuGuid;
    }

    public void setCiuGuid(String ciuGuid) {
        this.ciuGuid = ciuGuid;
    }

    /** 
     *            @hibernate.property
     *             column="CIU_USER"
     *             length="32"
     *         
     */
    public String getCiuUser() {
        return this.ciuUser;
    }

    public void setCiuUser(String ciuUser) {
        this.ciuUser = ciuUser;
    }

    /** 
     *            @hibernate.property
     *             column="CIU_TITLE"
     *             length="100"
     *         
     */
    public String getCiuTitle() {
        return this.ciuTitle;
    }

    public void setCiuTitle(String ciuTitle) {
        this.ciuTitle = ciuTitle;
    }

    /** 
     *            @hibernate.property
     *             column="CIU_TYPE"
     *             length="3"
     *         
     */
    public String getCiuType() {
        return this.ciuType;
    }

    public void setCiuType(String ciuType) {
        this.ciuType = ciuType;
    }

    /** 
     *            @hibernate.property
     *             column="CIU_SENDER"
     *             length="100"
     *         
     */
    public String getCiuSender() {
        return this.ciuSender;
    }

    public void setCiuSender(String ciuSender) {
        this.ciuSender = ciuSender;
    }

    /** 
     *            @hibernate.property
     *             column="CIM_GUID"
     *             length="32"
     *         
     */
    public String getCimGuid() {
        return this.cimGuid;
    }

    public void setCimGuid(String cimGuid) {
        this.cimGuid = cimGuid;
    }

    /** 
     *            @hibernate.property
     *             column="CIU_BTIME"
     *             length="20"
     *         
     */
    public String getCiuBtime() {
        return this.ciuBtime;
    }

    public void setCiuBtime(String ciuBtime) {
        this.ciuBtime = ciuBtime;
    }

    /** 
     *            @hibernate.property
     *             column="CIU_ETIME"
     *             length="20"
     *         
     */
    public String getCiuEtime() {
        return this.ciuEtime;
    }

    public void setCiuEtime(String ciuEtime) {
        this.ciuEtime = ciuEtime;
    }

    /** 
     *            @hibernate.property
     *             column="CIU_RESV1"
     *             length="50"
     *         
     */
    public String getCiuResv1() {
        return this.ciuResv1;
    }

    public void setCiuResv1(String ciuResv1) {
        this.ciuResv1 = ciuResv1;
    }

    /** 
     *            @hibernate.property
     *             column="CIU_RESV2"
     *             length="100"
     *         
     */
    public String getCiuResv2() {
        return this.ciuResv2;
    }

    public void setCiuResv2(String ciuResv2) {
        this.ciuResv2 = ciuResv2;
    }

    /** 
     *            @hibernate.property
     *             column="CIU_RESV3"
     *             length="150"
     *         
     */
    public String getCiuResv3() {
        return this.ciuResv3;
    }

    public void setCiuResv3(String ciuResv3) {
        this.ciuResv3 = ciuResv3;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("ciuGuid", getCiuGuid())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof CcpImUsermsg) ) return false;
        CcpImUsermsg castOther = (CcpImUsermsg) other;
        return new EqualsBuilder()
            .append(this.getCiuGuid(), castOther.getCiuGuid())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getCiuGuid())
            .toHashCode();
    }

}
